feat: add Polar support for Convex-backed Better Auth projects with CLI integration#110
Conversation
|
@Alisha-21-cloud is attempting to deploy a commit to the Ibrahim's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hey! Thank you for the PR! Will take a closer look soon |
|
fix: resolve auth test failure for Convex Better Auth with Polar payments The test was failing due to two issues:
Result: All 99 auth tests now pass ✓ |
PR Review — Verified IssuesI scaffolded projects from this branch to verify the issues below. Each one was confirmed against actual generated output. 1.
|
|
@Alisha-21-cloud There are lot of issues, I'm always okay with using AI to code but please review and verify your changes, if you'd like to fix all issues above - I can re-review the PR again |
|
Thanks for the detailed review 🙌 |
Fixes Completed ✅I’ve addressed all the reported issues. Please review the changes below:
All fixes have been pushed. Please take a look when you get a chance |
|
Will try to take a look today. Thank you |
- Revert unrelated elasticsearch feature (schema, deps, env vars, templates, tests, web constants/icons/links) — should be a separate PR - Revert ignoreDeprecations additions to 13 tsconfig files - Revert TinaCMS env var and README indentation changes - Revert unrelated svelte/next template tweaks - Remove dead useQuery/api imports from convex get-payment.ts.hbs - Add missing trailing newlines to 5 template files - Update snapshots to match reverted templates
…loud/Better-Fullstack into convex-polar-support
Reverts unrelated elasticsearch removals that were accidentally included in this PR. Elasticsearch was added in a separate merged PR and should not be removed here.
This pull request adds first-class support for integrating Polar Payments with Convex backends when using Better Auth. It updates the CLI, template generator, and project templates to scaffold all necessary code, dependencies, environment variables, and documentation for this combination. The changes ensure that projects using Convex, Better Auth, and Polar Payments are correctly scaffolded and tested out-of-the-box.
Key changes include:
Support for Convex + Better Auth + Polar Payments:
Template and Code Generation:
Dependencies and Environment Variables:
@convex-dev/polar,@polar-sh/sdk,@polar-sh/checkout) to backend and webpackage.jsonfiles for Convex projects. [1] [2] [3]packages/backend/.env.localfor Convex projects, including comments and setup instructions. [1] [2] [3] [4] [5]Post-Installation Instructions:
These changes make it seamless to scaffold and use Polar Payments with Convex and Better Auth, providing a robust developer experience for this stack.